package com.grj.blog.a;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.grj.blog.domain.BlogArticle;

import java.util.List;

public interface ArticleService {
    List<BlogArticle> getArticleList();

    BlogArticle getArticleById(Long id);

    void publishArticle(BlogArticle article);

    void deleteArticle(Long id);

    void updateArticle(BlogArticle article);

    Page<BlogArticle> search(String keyword, int pageNum, int pageSize);
}
